package conson.tech.manage.scene.service;

import conson.tech.manage.scene.vo.DictionaryVO;
import conson.tech.manage.scene.vo.request.DictionaryRequest;

import java.util.List;

/**
 * @Description: 字典服务
 *
 * @author: yuwenshuo
 * @since: 2020-06-22 08:32
 */

public interface DictionaryService {

    /**
     * 增改
     * @param dictionary
     * @param operationUser
     */
    void save(DictionaryRequest dictionary, String operationUser);

    /**
     * 删
     * @param dictionaryId
     * @param operationUser
     */
    void delete(Integer dictionaryId, String operationUser);

    /**
     * 查询列表
     * @param queryParam
     * @return
     */
    List<DictionaryVO> getDictionaryByParam(DictionaryRequest queryParam);

    /**
     * 查询单个
     * @param queryParam
     * @return
     */
    DictionaryVO getDictionaryByCondition(DictionaryRequest queryParam);

    /**
     * 冻结
     * @param dictionaryId
     * @param operationUser
     */
    void lock(Integer dictionaryId, String operationUser);


    /**
     * 解冻
     * @param dictionaryId
     * @param operationUser
     */
    void unlock(Integer dictionaryId, String operationUser);
}
